﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BusinessPlatform.Core.Criteria
{
    public interface ICondition
    {
        /// <summary>
        /// 查找的属性名称
        /// </summary>
        string FieldName { get; set; }
        /// <summary>
        /// 操作符
        /// 等于；大于；小于；……
        /// </summary>
        EnumOperateSymbol Operation { get; set; }
        /// <summary>
        /// 条件值
        /// </summary>
        string ConditionValue { get; set; }
        /// <summary>
        /// 值
        /// 只有在Between条件下才会使用到。
        /// </summary>
        string ConditionValueEnd { get; set; }
        /// <summary>
        /// 关系
        /// </summary>
        EnumRelationship Relationship { get; set; }
        /// <summary>
        /// 左括号的数量
        /// </summary>
        int BracketOpenNum { get; set; }
        /// <summary>
        /// 右括号的数量
        /// </summary>
        int BracketCloseNum { get; set; }
    }
}
